<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<style type="text/css">
#home {
	width: 80%;
}
a.button{
color:white;
text-decoration:none;
}
</style>
<input type="hidden" id="entask" value="${user.enableUploadTaskFile }">
<div class="home" style="margin: 30px auto;">
	<div id="oper_toolbar" style="font-size:11pt;">
		题目状态：<select id="proj_status" style="border:1px solid gray;">
			<option>请选择状态</option>
			<option>未审核</option>
			<option>审核通过</option>
			<option>未通过</option>
		</select>&nbsp;&nbsp; 题目: <input type="text" id="proj_name"  style="height:30px;"/>&nbsp;&nbsp; <input
			type="button" id="filter" value="筛选" class="btn btn-info">
	</div>
	<table id="projects_teacher" class="table  table-bordered  table-condensed table-hover table-striped">
		<c:if test="${projects!=null }">
		<thead>
			<tr id="data_title">
				<th style="width:30%;">专业</th>
				<th >题目名称</th>
				<th>题目状态</th>
				<th class="oper" style="width:40%;">操作</th>
			</tr>
			</thead>
			<tbody id="projList">
			<c:forEach items="${projects}" var="p">
			<!--  	<c:if test="${p.profs[0].profBranchName!=null }">-->
					<tr>
						<td style="width:30%;"><c:forEach items="${p.profs }" var="prof">
									${prof.profBranchName }&nbsp;
								</c:forEach></td>
						<td>${p.name }</td>
						<td>${p.formatStatus }</td>
						<td><a
							href="<%=basePath%>teacher/project_detail_${p.id}" class="btn btn-success">详细</a>&nbsp;|&nbsp;
							<c:if test="${user.enableUpdate==true }">
							<a href="<%=basePath%>teacher/update_project_${p.id}" class=" btn btn-info">修改</a>&nbsp;|&nbsp;
							</c:if>
							<a href="javascript:;"	class="delProj  btn btn-warning" name="${p.id }" >删除</a>
							<c:if test="${user.enableUploadTaskFile==true }">
							|<a class="upTask btn btn-info" href="javascript:void(0);" name="${p.id }">任务书</a>
							</c:if>
							
							</td>
							
					</tr>
				<!--</c:if>-->
			</c:forEach>
			</tbody>
		</c:if>
	</table>

</div>
